#include <stdio.h>
#include <ctype.h>
int main(int argc, char const *argv[])
{
	char input[50];
	char ch;
	int i,k, j, l, m,n;
	k=0;
	i=0;
	j=0;
	l=0;
	m=0;
	n=0;
	
	printf("shuru zifu\n");
	while((input[i]=getchar()) != '\n')
	{
		//i++;
		ch = input[i];
		if (islower(ch))
			l++;
		else if (isupper(ch))
			m++;
		else if (isspace(ch))
			n++; 
		else 
			k++;
		i++;
	}
	printf("%s\n", input);
	printf("\n%d\n%d\n%d\n%d\n%d\n%d\n", i,k,j,l,m,n);
	return 0;
/*	scanf("%[^\n]",input);

	for (i = 0; input[i] != EOF && i<50; ++i)
	{
		
printf("%c", input[i]);
		if (input[i]>'a'-1 && input[i]<'z'+1)
			l++;
		else if (input[i]>'A'-1 && input[i]<'Z'+1)
			m++;
		else if (input[i]=' ')
			n++; 
		else 
			k++;
	}
	printf("\n%d\n%d\n%d\n%d\n%d\n%d\n", i,k,j,l,m,n);
	return 0;*/

}
